<script setup lang="ts" name="App"></script>

<template>
  <el-config-provider>
    <RouterView v-slot="{ Component, route }">
      <KeepAlive>
        <Component v-if="route.meta?.keepAlive" :is="Component"></Component>
      </KeepAlive>
      <Component v-if="!route.meta?.keepAlive" :is="Component"></Component>
    </RouterView>
  </el-config-provider>
</template>

<style scoped lang="scss"></style>
